package com.wanxi.web.service.product;

import com.wanxi.product.service.api.query.shop.SkuQueryShop;
import com.wanxi.product.service.api.result.CommonResult;
import com.wanxi.product.service.api.vo.shop.*;
import com.wanxi.repertory.service.api.vo.RepertoryTotalUpdateInVo;

import java.util.List;


public interface ProductShopWebService {

    /**
     * 获取sku列表
     * @param skuQuery
     * @return
     */
    CommonResult<List<SkuFindAllOutVo>> findAllSku(SkuQueryShop skuQuery);

    /**
     * 根据id查找sku
     * @param skuId
     * @return
     */
    CommonResult<SkuFindByIdOutVo> findSkuById( Long skuId);

    /**
     * 商品上下架
     * @param skuShelvesInVo
     * @return
     */
    CommonResult skuOnShelvesAndOffShelves( SkuShelvesInVo skuShelvesInVo);

    /**
     * 通过店铺id查找skuId
     * @param shopId
     * @return
     */
    com.wanxi.repertory.service.api.result.CommonResult<List<Long>> findSkuIdByShopId(Long shopId);

    /**
     * 修改库存量与商品状态
     * @param repertoryUpdateInVo
     * @return
     */
    com.wanxi.repertory.service.api.result.CommonResult updateTotal(RepertoryTotalUpdateInVo repertoryUpdateInVo);
}
